package com.hmkj.core.po.wx;

import com.hmkj.common.baseMapper.GenericPo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.util.function.Consumer;


/**
 * 微信公众号自定义菜单按钮表实体信息<br>
 *
 * @author Vector
 * @date   2017-10-18 10:04:13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "微信公众号自定义菜单按钮表")
@Table(name = "wx_button")
public class WxButton extends GenericPo<Integer> {

    public static final String TABLE_NAME = "wx_button";

	
	/**父级按钮编号**/
	@ApiModelProperty(value = "父级按钮编号")
	private Integer topBtn;
	/**所属微信公众号编号**/
	@ApiModelProperty(value = "所属微信公众号编号")
	private Integer wxId;
	/**自定义菜单按钮数据，类型：key,url**/
	@ApiModelProperty(value = "自定义菜单按钮数据，类型：key,url")
	private String data;
	/**自定义菜单按钮名称**/
	@ApiModelProperty(value = "自定义菜单按钮名称")
	private String name;
	/**排序**/
	@ApiModelProperty(value = "排序")
	private Integer sortNo;
	/**自定义菜单按钮类型，包括如下类型：click,view,subbtn**/
	@ApiModelProperty(value = "自定义菜单按钮类型，包括如下类型：click,view,subbtn")
	private String type;
	/**备注**/
	@ApiModelProperty(value = "备注")
	private String remark;

    public WxButton(){}

    public WxButton(Consumer<WxButton> consumer){
    consumer.accept(this);
    }
}

